package com.buddy.design.pattern._08adapter.loginadapter.adapter;

import com.buddy.design.pattern._08adapter.loginadapter.ResultMsg;

public class LoginForQQAdapter implements LoginAdapter {
    @Override
    public boolean support(Object adapter) {
        return adapter instanceof LoginForQQAdapter;
    }

    @Override
    public ResultMsg login(String id, Object adapter) {
        return ResultMsg.build(200,"QQ登录成功","QQ登录");
    }
}
